Skip to content

Conversation

@ggerganov
Copy link
Member

fix #9460

Upon attempting to allocate Metal buffers with size of 0 bytes, simply return nil.

@ggerganov ggerganov merged commit c4965a6 into master Sep 16, 2024
41 checks passed
@ggerganov ggerganov deleted the gg/metal-zero-allocs branch September 16, 2024 06:05
dsx1986 pushed a commit to dsx1986/llama.cpp that referenced this pull request Oct 29, 2024
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Nov 15, 2024
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: ggml_backend_metal_buffer_type_alloc_buffer: error: failed to allocate buffer

2 participants